package com.longge;

import java.util.HashSet;

/**
 * @program: my-code
 * @description:
 * @author: longge
 * @create: 2021-04-30 02:18
 */
public class CheckIfPangram {

    public boolean checkIfPangram(String sentence) {
        char[] chars = sentence.toCharArray();
        HashSet<Character> characters = new HashSet<>();
        for (char aChar : chars) {
            characters.add(aChar);
        }
        return characters.size()==26;

    }
}
